package pers.zc.activiti.shejimoshi.gongchang;

/**
 * @Annotion:
 * @ClassName: Context
 * @Author: Lin Fuyuan
 * @Date: 2019/11/18  14:25
 * @Version: 1.0
 */
public class Context {
    private static Factory factory;

    public static Factory getFactoryInstance(String name){
        if(name.equals("impl1")){
            factory = new FactoryImpl1();
        }else{
            factory = new FactoryImpl2();
        }
        return factory;
    }
}
